better way to get the current branch