main function for MulticastComm