update R.cgi