add a method in thread helper