logic for indexes now using native driver and metadata