adds queue and entry