support for replacing contents in header as well