make threads joinabl