fix logging. #3