scripts - generate index