fix some logging