change heartBeatServer.use threading.Thread instead of _thread