added branch switching to multipaths