added more spawning functionality