reads network config