fix logger quirks; many cosmetic changes.