implemented basic logic and corrected errors for threshold drool rules,
next: implement the rules dynamic update