fix email api again