rewrote pid2cat for updated tag to identifier matching