suffix array + automation