updated script and index files