adding support for s3 file exports and json