work on WAIT_BITSET and WAKE_BITSET