some more changes, on auth library, and  stuff