update to datasource struct