add agent and gate