format script file