addPins now uses sockets