added message parsing so multiple messages in one blob could be broken up