renaming files to avoid conflicts