fix logging again