handling of .dat files is added: bug repaired 2