added stock mdp template run function