added support for custom header