tweaking oauth error handling