update agentmethodadapter