index and script update