drop some hint on how this rule generator script works