add sync func in client