optimize package/module completions