faster autocomplete
factor out stats and proc