fix logging calls