added checksum validation and fixed filepaths