loglevel + minor fixes