fix logging (hopefully)