allow cyclic branch switching