add notifyAll and notifyAny