add getThresholds method to datasetmanager