added email functionality'