safer scripting