output from message_gen expected to be iterable