small fixes for logging