trying to adapt module to aws s3