dded QoS stuff from dfoody