handle bundled tcp messages