can get and put cors; added some OO to the Bucket object