initial things to get EC working
used AJ's framework for electrochemical_thermo_mode