customize rewrites.json before copying