scripts I used to find difficulty cutoffs