add TH library