added spawnListener and the possibility to spawn