moving to $SCRATCH the R libraries, location files, and more stuff