added priority field (always defaulted to 0) to Rule