better implementation for completions when debugging