add simple chains and viterbi