added client related functionality for messages from client