infrastructure for autocomplete works