save data

debug thread issue