got most of agent and related_agents working