respecting more WITH_XXX variables in template config