doc ability to switch api