updated email logger