added exception handler to oauth layer