internalize markov script