adding support for basic auth