added support for blocks of messages