removed unnecessary wakeup thread