fixes some issues with s3 methods