added update function to server
minor fix
fix
fix