pass overwrite arg when writing header