implement checksum handling
small fixes