markov functions and makefile edit