pid -> endpoint
Removed proc2pid()
Using ENDPOINT parameter