dequeue, sort of