bug fix in file names from dat