adds wait_for_ready() to CCI and updates CLI to use it