format the script file