module rewrite