added support for inline messages.