cleaning up processing and some of the typeahead scaffolding