got the parsing somewhat right for getting the branch name