removed unnecessary changes from ScriptEngine