added qps functionality