updated logic to default to current branch with previous all branch update as an option