implemented message-size header in client/server messages