added the agent manager and the initial protocol