move script copy after main setup