new autocomplete client code