added debugging for auth