change File.renameTo to FileUtil.copyFile