updated thermodynamics module