socket fixup