migrating index logic to email.py
merged email changed, remove premature testing return