improved tag and branch reference design