small changes to spawning