majore improvements to the mdp