move script to end