fix extract-rules, add weird mana cases