framework: support dual networks.