remove bucket and add endpoint to ensure proper functionality of s3