fixed some auth stuff