added detection for bad ravel