rewrote Spawner