better support for http result handling