trying to get spawnOnce working