Sketch of node/socket functionality