added logic, files are saved on startup if the have no name