update rewrite base