thousandbest line and pie with s3 connection