making working threads daemons