reading network
more refactoring