fix logging util