added proxy to get pid