parsing file names for copying