crappy spawning code