spawning should happen in one block under the synchronized lock