moved esc_cycle_wait