more tweaks to try to get emails to work