adds atomic change email functionality