factor out CB-analysis
better entropy estimation