change generated s2s code to use portalSendFd/RecvFd (partial)