added email handler