infer path params