add autocomplete query core function as extra class to util