more autocomplete improvements on the backend