add checksums to debug output
actually compute the checksum