typeahead implementation incomplete