add script indexer + test indexer main