update rules engine