add ? to scope in ITemplateLinkingFunction