saving scripts works