work on loglevel management

fixes #173, relates #201