added get_outbox_messages method