adds mdclient and adds withClientAPI to mdclientapi