make autocompletion smarter