fix config. fix context accessing