threads opening and updating reworked