added email timeout