checksum validation and more stuff