trying to fix non plaintext email bug