adding thread spawner