changes to script and index