skips npoints from local file correctly
better error reporting