fixed some logging