module-simulator: wrap in anon fun, and export as MODULE_SIMULATOR