workign on notify/wait synch