make rewrite config part optional