prioritize queries