wrote multiQueue class for flows