updated file name handling