save changes to script files