update index & script