move script to new file