modular: added callback to spawn