fixing up some auth stuff