spawner code changes