save msgId on client and to service.
s