added rule support

still need to add that to the file parser