set up index while we're at it
spec for index json