getPins now uses sockets