export of hmm into two files