better way to get workers pids

x option added to the ps command when getting workers' pids