improved queing mechanism