be smarter with priorities and the like