add new method to get data source for file easily