update rewrite engine