add functions to load/store data from/to file