fix pid routes