creation of newAgentServer