network_io Refactoring