add message sync in thread