server message handling example added