wait for s3