lots of untested changes, trying to make the r scripts read https and dump to a different directory