refactor out mailHandler from index