externalize rewrite version