fix up copy script