initial config parsing and gw finding
script works as expected