added crc logic for datafile access