add path pattern matching