added support for unconfirmed messages