add prioritization support - relevant to #36