working version with spawning threads.  needs some cleanup but works beautifully...better than sqrt dos on a hot day in july.