amazon s3 library and util code