utility to switch active branch