fix for email api