updates to saving and loading of files