merged with autocomplete stuff