support ref or dup
more xname api