Quality of service

wip