auto create maincontainer when p2p connection is establish