fixing copy script