added ability to keep history of header values