updated index file for script