added HandleReceivedMessage for client interface (wip)