add #reset and #setRule