port fixup