handling user_agents from active_resource