get Agent working with ScriptEngine