added support for http head method