update to parse multi-message TCP streams