S-2 add use of condition variables