rewrite s3 filePath & some modify