stop_level renamed to rule_stack