fix logging againw