set up spawning