fixed email processing