// re-generate class_index on the first step of install