async in CLI instead of recursive loops