added connections option and async queue for s3 uploading