ref to queue is saved globally