added thread class, update on map