don't set old and new config = same file. Save old, then clear, then save new = None!