yay, viterbi works!