add endianess check to epg.dat