added support for custom request headers