try redirect instead (still wip)
close files, hoorah
extend S3_BUCKET to accept folders