fix logging contexts