add support for BasicAuth