started with server message handling
added logging to server