more work on typeahead