minor low-level spawn_gen