added update

TODO: it needs to write the values to the client