fix to support multiple networks