improved http support