update s3 calls to not use deprecated fns