update script file