fixes for logging