added multipeer connectivity implementation