scriptingAPI: add freeze/unfreeze