modify rename and copy script