add header attrib machinery