added download dataset functionality