add config to disable legacy variable substitution