trying to set oauth2 to not barf on unexpected state