added longest prefix matcher