changed PIDs to socket descs