email test code craziness fixed hopefully