properly switch between versions