more refactoring

  - remove dependence on current threshold of data provider
  - remove data provider's "get all nodes" functionality
    - make this an optional "prefetch" option