[lib] a less agressive approach to setting up auto-complete