udated ml client api to dev branch and fixed adv search bugs