hopefully fix multiple rewrites during pp