add rules_cond and more