adding multi queue support