CHG: modified copying script