Updated to new codec code for msg pack

  * Please review and merge