better priority queue support