fixed some bugs and behavior mistakes regarding the new threading system