switch sweep to use a priority quue to manage in-context intervals