implemented s3 and paperclip