making it write the files at startup