add server-update func and use it to apply server