add runCompletion API