changed receive functionality for client messages