sync local and server