split off setup fns into setup.R