replace Net -> IO