startPeer in thread