moved logging to compose email