use map on procQueue and jobQueue