spent all day debugging some crap that "can't happen" and of course it was a stupid off-by-one error that nobody noticed for months. ffs who tests this stuff