started on s3 functions