error handling some missing token handling