fixed bugs with setAuth, other cruft cleanup