updates for new wit api interface.