switched email back and removed debug output