updates to the threading