fix logging statements