factored branding into xtags