add GetBranches method