add basic deliver/inbox/outbox functionality