trying to determine what to do with a multi-threading problem.