added email scripts