fixing bug w/ saving scripts