https://youtu.be/pNlq-EVld70?si=UaFDVwhwyQZqkZrW&t=323
though looking at that flood of loose ifs+returns, i kinda wish they used rust :)
https://youtu.be/pNlq-EVld70?si=UaFDVwhwyQZqkZrW&t=323