add download file mechanism for dataset