nests the _tagReplace calls