started using sessions for email retrieval