oauth-api structure fix