initial implementation of restoreFromFile