error handling improved in jsonex