[tmpod] implement syncing protocol