refactor(index) files