implement checksum matching