tried to fix logging issue