create qthread to sync saved states