update code from server