added index_patterns and display_patterns