removed agent_check