fix syncing bug and make syncing happen 1-by-1
(one must finish before the next start)