improve CopyFile()