added selectKV to QB