change threads daemon  to true