add msg_parse

Change-Id: I38e5613d9da88a7cdddc78d7f047f569d44ec256