support config with multiple rules.