update batch processing and Rscript