Update thx_io.hpp