rewrote basic auth examples to be like connect