tweaked queue_item controller code