fixing getconditions threading