json/mms processing fixes