adding index and script