solved spawning errors