refacto,add in box and out box mailbox