added support for headers