repo: update sync algorithm. fewer threads, less complexity