restructuring functions locations in files; add dataset_base_uri setting