set up index and config