added stop_and_wait command