fix logging class