add qos support

Hi! I've added qos support. I've only checked prefetch_count, so I don't guarantee that other parameters work.