add doAnchor class support