a lot of refacturing, the mpdrestapi is now a stand alone package