handling file.copy