initial email logging work