modified setup.R