major changes to logging infrastructure
removing some old cruft
bugfixing, but things are working\!