support ~Path(...) for querying