add saving of data source to file