minor email function changes