[api] refactor api
[sync] refactor