small refactor to jsonclient and anaconda autocompletion