rewritten module support