fixed some logging stuff