fixed some auth parsing