changing core_plugin variable to agent_type