update tHW things and clean several files