added threaded scanning for completions for responsive UI