server-side autocomplete, needs cleanup