added index and script