modified logic to determine isolated vs. cosmological output