consolidate repeated rules search
fixed bug with rules using mac from cookie