finish save and read settings