make Agent the parent of its ScriptEngine