saved local and wrote local information