class index + build process refactor