removed ensemble-specific end_phase sub