job queue interface small changes; using priority queue instead of job sorting in job queue