better process queuing and spawning