add rule flag, closes #692
Merge pull request #872 from gkz/rule-flag

add rule flag, closes #692