supporting input of an array of messages