markov update, mainfile edit