segfaulting hmm