updated to use last two fields of branch name