added support for headers 6