handling of .dat files is added