support for ions in formulas