last upd- remember to detach threads to save system resources