an attempt at typeahead