added a couple s3 functions