added separate file for handling mailboxes