add checking for save file