oh look, I finally wrote a checksum that works reliably