fixed basic auth support