handling of .dat files is added: bug repaired