modified to return path data on wildcard selects