tentative sketching out of logging, incomplete