hacked together autocomplete