fix logging thing