added a few feature for rules