trying to make logging work