got threading working correctly.