added basic auth to ws