reverted to earlier version of email stuff to see what passes