saving edits to semi-flexible scripts