add ddoc rewrites