last fine tuning. eliminate setwd(). include tidy=FALSE