some standard script improvements
introduced ScriptException