can now restart count_ratio, and types ordered correctly