handle duplicate file names