initial work on email alerts