refine tag with TagDef.h