better fix for Rscript not loading methods