add sync method to clientapp