use the new dataset resource api