demo works but extremely conservative thresholds