write headers to file. read those files at start-up.