improvements to email notifications