Use the new api for the tcp module