refactors mailroom w/more functions