updated saveToDisk and list functions