added email retrieval