added evalQuery and evalAutocomplete