changed settoken, oauth error handling