add clear-index script