added ability to select server for PID fetching routine