more logging stuff
more work on logging library