move script to end of file