rewrite ruleset for core