setup index schema