cleaned up copy script