improved preformance of BOSH request and made it meet spec better