tryingto fix logging issue