upgrade queue to a smart-inject script