fixup for new socket api