exotcp/tcp: code cleanup