amended index and script files