allow rule matching against category

fix issue #135