follow standard conventions for error handling and callback better and properly detect campbx errors in json which use 'Error' and not 'error'