made destructor of datasource public