updated to do more formating and parse the config for larger networks