implementation of create_mailbox