added checksum validating