add qos support

Hi! I've added qos support. I've only checked prefetch_count, so I don't guarantee that other parameters work.
OK, that's fine. I'll have a careful think about that parameter and I'll add it back in once I've reached a conclusion :smiley: