move script to file