added email stuff