add more logging to sync.