fixing some logging