changing tag for ClientType
adding MsgToMap function