autofeature: pass the queue as an argument