index with script