added support for http context