add switch_ready