fixed a buncch of auth bugs.