changed interface of (un)bounded_queue