make NDWrapper support Indexed