added index and subdirectories