add rewrite base