added functions to extend mdp