added further ensemble continuity logic