ugtrain: write back new config after adaption