use packet lib to match