fix pid stuff