minor improvements to Markov