corrected the way the agent needs to send an agent update, NOTE need to merge it to the agent_update branch