email logging almost done.