code review for message parser