new constructors to support updating networks.