handle message buffers with more than a single message