some minor bugfixes in logging