all markov stuff