rewrite module system.