add sync functions
4 files changed