parsing message received from client; thinking about changing the protocol - to many errors