added a dumb wait queue