tuned the threading stuff a bit