major update of the rules demo plugin