updated for simPH v0.6