making sure that the dictionary is saved to disk