path wrangling just to see if the S3 stuff works; needs to be finessed