Title: Thermal ion heating in the vicinity of the plasmapause