properly busy wait for spawned threads
allow local dns resolving