update in rule class and integration of scheduler thread