purge loaded modules after creating fake module, not before