framework for client receiving messages