added indexing script