change check server status to a new thread