smart queue management