added setDatasets to Endpoint