sorted out how to deal with finished threads I think