add agent.resolve()