move update command to client script