updated Cordova; improving error handling for bad scans