support nested rulesets