modified sync cgi add code batch update.