email test code craziness