add another flag variable which indicating whether need to upload static files to S3