add rule flag, closes #692