a touch of cleanup on the events emails
#138, added middleware