add qos support

Hi! I've added qos support. I've only checked prefetch_count, so I don't guarantee that other parameters work.
Can we rename this to `set_qos` please?