framework for receiving messages if you are host