work on agent_registration