fix email issues

[fixes #7]