some logging fixes