updates to ionization code