socket example fixup