minor threading issue