adds support for custom headers