add __CLASS__ for thread