  A new version of the nuclear shell model unifies the consideration of the
discrete spectrum, where the results agree with the standard shell model, and
continuum. The ingredients of the method are the non-Hermitian effective
Hamiltonian, energy-dependent one-body and two-body decay amplitudes, and
self-consistent treatment of thresholds. The results for helium and oxygen
isotope chains well reproduce the data.
