load pattern matcher & rules