fix logging warnings