added email logger