added basic auth fix