handle branch switching for multiple project