pre-index build