saving script before editing class version