adding tracking of PIDs