update header info for outfile