make agentcontainer global