make thread checker function static