try to fix logging