moved to wait/notify version