fixed s3.rb