refactoring - goal is single 'platform' script to run from *R* console with the paths right!