adding message structure to client