full sync data and threading code