add wait and run for CPU (to handle synchronous wait states)