adding support for http auth