added untested markov estimation stuff