add ZTS support