adding rewrite dep