add rewrite option