add function to write url string for dataset