support optional scope on ITemplateLinkingFunction