added support to send multiple messages