added rule support