synchronize local and server