later dbx api, also closing datasource since cannot open twice