unify opt_rules interface.