modified from QoS-Module